package com.shy.userservice.service;

import com.shy.commonutils.result.R;
import com.shy.userservice.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author RinMi
 * @since 2022-11-23
 */
public interface UserService extends IService<User> {

    boolean sendCode(String phone);

    R phoneLogin(String phone, String code);

    R login(String phone, String password);

    boolean phoneRegister(String phone, String code);

    R register(String phone, String password);

    boolean changePasswordForPhone(String phone, String code, String password);

    boolean changePassword(String phone, String oldPassword, String newPassword);

    R findPassword(String phone, String code);

    boolean changeInfo(User user);

    boolean changePhone(String oldPhone, String newPhone, String password);
}
